home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 1999 November / SGI IRIX 6.5 Applications 1999 November.iso / dev / insight_dev.idb / usr / share / Insight / templates / make / Makefile.ism.books.z / Makefile.ism.books
Encoding:
Makefile  |  1998-10-28  |  892 b   |  33 lines

  1. #!smake
  2. #
  3. # Makefile for ISMNAME/books
  4. #
  5. # This makefile passes all targets to the lower level makefiles
  6. #
  7. include $(ROOT)/usr/include/make/commondefs
  8.  
  9. COMMONPREF=books
  10. SUBDIRS=
  11.  
  12. default headers exports : $(_FORCE)
  13.  
  14. $(COMMONTARGS) : $(_FORCE)
  15. #ifmake clobber || rmtargets
  16.     @for d in $(SUBDIRS); do \
  17.         (cd $$d ; echo "    (cd $$d)" ; make clean ) ;\
  18.     done
  19. #else
  20.     $(SUBDIRS_MAKERULE)
  21. #endif
  22.  
  23. install::
  24.     -@for d in $(SUBDIRS); do (cd $$d; mkdir xxxtmpdir; /bin/mv -f *.doc xxxtmpdir 1> /dev/null 2>&1); done
  25.     @OLDIDB=$$RAWIDB; RAWIDB=$$RAWIDB.books; export OLDIDB RAWIDB; \
  26.     if [ -f $$RAWIDB ] ; then rm -f $$RAWIDB ; fi ; \
  27.     echo "RAWIDB="$$RAWIDB" SRC=$(SRC) $(MAKE) install" ; \
  28.     for d in $(SUBDIRS); do $(SUBDIR_MAKERULE); done ; \
  29.     cat $$RAWIDB >> $$OLDIDB
  30.     -@for d in $(SUBDIRS); do (cd $$d; /bin/mv -f xxxtmpdir/*.doc . 1> /dev/null 2>&1 ; rmdir xxxtmpdir); done
  31.  
  32. include $(COMMONRULES)
  33.